/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gidoo.websites.example.plugins;

import java.io.Serializable;
import org.apache.wicket.ResourceReference;
import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.markup.html.tree.LabelIconPanel;
import org.gidoo.cms.IAdminPlugin;

/**
 *
 * @author thomas
 */
public class TestAdminPlugin implements IAdminPlugin, Serializable
{
  
  public ResourceReference getAddinIcon()
  {
    return new ResourceReference(LabelIconPanel.class, "res/folder-open.gif");
  }

  public String getPluginName()
  {
    return "Example Plugin";
  }

  public Panel getPluginPanel(String id)
  {
    return new MyPanel(id);
  }

  @Override
  public String toString()
  {
    return getPluginName();
  }
  
  
  
  public class MyPanel extends Panel
  {
    public MyPanel(String id)
    {
      super(id);
    }
  }
  
}
